package com.gzhryc.shared_device.oem.code.config.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;

import java.io.Serializable;
import java.util.Date;

@Table(name = "config_api_security")
public class APISecurityConfig implements Serializable {

    private static final long serialVersionUID = 1L;

	@Id
    protected Long id;
	
    @Column(notNull=true,note = "api安全名称")
	protected String name;

    @Column(notNull=true,note = "访问Token")
    protected String token;

    @Column(length = 255,note = "访问的IP地址，已逗号分隔")
    protected String ips;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getIps() {
		return ips;
	}

	public void setIps(String ips) {
		this.ips = ips;
	}

	public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
